// import { get, post } from '@/utils/request'

// export const showdetilApi = async (params) => await get('/api/vocalconcert')

import { get, post } from '@/utils/request'

// 根据id查询演唱会详情
export const showdetilApi = async (id) => {
  try {
    const response = await get(`/api/vocalconcert`);
    const filteredData = response.data.filter(item => item.id == id);
    return filteredData[0];
  } catch (error) {
    console.error(error);
    throw error;
  }
}